package com.reconcile.phone.common.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云一键登陆参数配置
 *
 * @author zxl
 * @version 2024/1/22
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "face-authentication")
public class FaceAuthenticationProperties implements InitializingBean {

  /**
   * appId常量
   */
  public static String APP_ID;

  /**
   * clientId常量
   */
  public static String FACE_AUTH_CLIENT_ID;
  /**
   * clientSecret常量
   */
  public static String FACE_AUTH_CLIENT_SECRET;

  /**
   * appId
   */
  private String appId;
  /**
   * key
   */
  private String clientId;
  /**
   * 密匙
   */
  private String clientSecret;

  @Override
  public void afterPropertiesSet() {
    FACE_AUTH_CLIENT_ID = this.clientId;
    FACE_AUTH_CLIENT_SECRET = this.clientSecret;
    APP_ID = this.appId;
  }


}
